<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="../js/lib/jquery-1.11.3.js"></script>
    <script>
        
      let arr = [
        {
          pimg: "../img/book1.jpg",
          pname: "1",
          pprice: 18.7,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
        },
        {
            pimg: "../img/book2.jpg",
          pname: "2",
          pprice: 19.5,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
        },
        {
            pimg: "../img/book3.jpg",
          pname: "3",
          pprice: 28.0,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
        },
        {
            pimg: "../img/book4.jpg",
          pname: "4",
          pprice: 150.80,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
        },
        {pimg: "../img/book5.jpg",
          pname: "5",
          pprice: 33.2,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,},
          {
            pimg: "../img/book6.jpg",
          pname: "6",
          pprice: 44.90,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
          },{
            pimg: "../img/book7.jpg",
          pname: "7",
          pprice: 29.40,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
          },{
            pimg: "../img/book8.jpg",
          pname: "8",
          pprice: 48.60,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
          },{
            pimg: "../img/book9.jpg",
          pname: "9",
          pprice: 15.3,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
          },{
            
            pimg: "../img/book10.jpg",
          pname: "10",
          pprice: 88.8,
          pdesc: "我有友情要出租（拼音版）",
          uid: 139869,
          },
      ];
      arr.forEach((item) => {
        $.get("http://jx.xuzhixiang.top/ap/api/goods/goods-add.php", item).then(
          (resData) => {
            console.log(resData);
          }
        );
      });
    </script>
  </body>
</html>
